
	<div class="sidebar"  id="sidebar">
				<div class="sidebar-shortcuts" id="sidebar-shortcuts">
					<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
						<button class="btn btn-small btn-success">
							<i class="icon-signal"></i>
						</button>

						<button class="btn btn-small btn-info">
							<i class="icon-pencil"></i>
						</button>

						<button class="btn btn-small btn-warning">
							<i class="icon-group"></i>
						</button>

						<button class="btn btn-small btn-danger">
							<i class="icon-cogs"></i>
						</button>
					</div>

					<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
						<span class="btn btn-success"></span>

						<span class="btn btn-info"></span>

						<span class="btn btn-warning"></span>

						<span class="btn btn-danger"></span>
					</div>
				</div><!--#sidebar-shortcuts-->

				<ul class="nav nav-list">
					<li >
						<a href="index.html">
							<i class="icon-dashboard"></i>
							<span class="menu-text"> <?php  echo translate_word_shop('Dashboard'); ?> </span>
						</a>
					</li>
					
					<li >
						<a href="<?php echo SERVER_PATH; ?>companies.html">
							<i class="icon-dashboard"></i>
							<span class="menu-text"> <?php  echo translate_word_shop('Companies'); ?> </span>
						</a>
					</li>

					
					<?php 
							
							if($page=='home' || $page=='site_pages' || $page=='about' || $page=='contact' || $page=='cart' || $page=='about' || $page=='product_list' || $page=='header-footer' ){
								$submenu = 'active open';
							}else{
								$submenu='  ';
							}
						?>
					<li class='<?php echo $submenu; ?>'>
						<a href="#" class="dropdown-toggle">
							<i class="icon-desktop"></i>
							<span class="menu-text"><?php echo translate_word_shop('Pages'); ?> </span>

							<b class="arrow icon-angle-down"></b>
						</a>
						
						<ul class="submenu" >
							<?php 
						
								$pages=$shopObj->fetch_result("SELECT * FROM site_pages WHERE parent_id=0 AND show_in_menu_admin=1 ORDER BY `order`"); 
									
								foreach($pages as $key=>$value){

									echo '<li';

									if($_GET['site_page'] == $value['page_slug']){
										echo " class='active' ";
									}

									echo '>
											<a href="'.SERVER_PATH.'pages'.'/'.$value['page_slug'].'.html">
												<i class="icon-double-angle-right"></i>
												'.translate_word_shop($value['page_slug']).'
											</a>
										  </li>';

								}
								if($_GET['site_page']=='terms-and-conditions' || 
										$_GET['site_page']=='privacy-policy' ||
										$_GET['site_page']=='conditions-of-return' ||
										$_GET['site_page']=='how-to-buy' ||
										$_GET['site_page']=='delivery-info' ||
										$_GET['site_page']=='size-assistance' ||
										$_GET['site_page']=='warranty' ){
										$submenu='  open ';
									}
							?>							
							<li class=' <?php echo $submenu; ?>'>
								<a class='dropdown-toggle' href="header-footer.html">
									<i class="icon-double-angle-right"></i>
									<?php echo translate_word_shop('customer_pages'); 

										
									?>
									
									<b class="arrow icon-angle-down"></b>
								</a>
								
								<ul class="submenu" <?php echo $submenu; ?>>
									<?php 

										$pages=$shopObj->fetch_result("SELECT * FROM site_pages WHERE parent_id=27 AND show_in_menu_admin=1 ORDER BY `order`"); 
										foreach($pages as $key=>$value){

											echo "   <li";
											 if($_GET['site_page'] == $value['page_slug']){
													echo " class='active' ";
												}
											echo ">
														<a href='".SERVER_PATH."pages/".$value['page_slug'].".html'>
															<i class='icon-double-angle-right'></i>
															".translate_word_shop($value['page_slug'])."
														</a>
													</li>";

										}
									?>									
								</ul>
							</li>
							<li>
								<a href="header-footer.html">
									<i class="icon-double-angle-right"></i>
									Contact page
								</a>
							</li>

							<!-- <li>
								<a href="#" class="dropdown-toggle">
									<i class="icon-double-angle-right"></i>

									Three Level Menu
									<b class="arrow icon-angle-down"></b>
								</a>

								<ul class="submenu">
									<li>
										<a href="#">
											<i class="icon-leaf"></i>
											Item #1
										</a>
									</li>

									<li>
										<a href="#" class="dropdown-toggle">
											<i class="icon-pencil"></i>

											4th level
											<b class="arrow icon-angle-down"></b>
										</a>

										<ul class="submenu">
											<li>
												<a href="#">
													<i class="icon-plus"></i>
													Add Product
												</a>
											</li>

											<li>
												<a href="#">
													<i class="icon-eye-open"></i>
													View Products
												</a>
											</li>
										</ul>
									</li>
								</ul>
							</li> -->
						</ul>
					</li>

					<li <?php if($page=='products'){ echo " class='active' "; } ?>>
						<a href="<?php echo SERVER_PATH.'products.html' ?>" >
							<i class="icon-edit"></i>
							<span class="menu-text"> <?php echo translate_word_shop('my_products'); ?> </span>

							
						</a>

						
					</li>	

					<li <?php if($page=='orders'){ echo " class='active' "; } ?>>
						<a href="<?php echo SERVER_PATH.'orders.html' ?>">
							<i class="icon-picture"></i>
							<span class="menu-text"><?php echo translate_word_shop('Orders'); ?>  </span>
						</a>
					</li>

					<li <?php if($page=='clients'){ echo " class='active' "; } ?>>
						<a href="<?php echo SERVER_PATH.'clients.html' ?>">
							<i class="icon-picture"></i>
							<span class="menu-text"> <?php echo translate_word_shop('Clients'); ?> </span>
						</a>
					</li>
					<li <?php if($page=='wishlist'){ echo " class='active' "; } ?>>
						<a href="<?php echo SERVER_PATH.'wishlist.html' ?>">
							<i class="icon-picture"></i>
							<span class="menu-text"> <?php echo translate_word_shop('whislist'); ?> </span>
						</a>
					</li>

					<li <?php if($page=='reports'){ echo " class='active' "; } ?>>
						<a href="reports.html">
							<i class="icon-picture"></i>
							<span class="menu-text"><?php echo translate_word_shop('Reports'); ?>  </span>
						</a>
					</li>
					<li <?php if($page=='settings'){ echo " class='active' "; } ?>>
						<a href="settings.html">
							<i class="icon-picture"></i>
							<span class="menu-text"><?php echo translate_word_shop('shop_settings'); ?>  </span>
						</a>
					</li>
				</ul><!--/.nav-list-->

				<div class="sidebar-collapse" id="sidebar-collapse">
					<i class="icon-double-angle-left"></i>
				</div>
			</div>